#include <iostream>
#include <grpc++/grpc++.h>
#include "user_service.grpc.pb.h"

class UserServiceImpl final:public user_service::UserService::Service
{
public:

     // 创建用户
    ::grpc::Status CreateUser(::grpc::ServerContext* context, const ::user_service::CreateUserRequest* request, ::user_service::CreateUserResponse* response);
    // 获取用户
    ::grpc::Status GetUser(::grpc::ServerContext* context, const ::user_service::GetUserRequest* request, ::user_service::GetUserResponse* response);    // 更新用户
    // 更新用户
    ::grpc::Status UpdateUser(::grpc::ServerContext* context, const ::user_service::UserInfo* request, ::user_service::UpdateUserResponse* response);
    // 删除用户
    ::grpc::Status DeleteUser(::grpc::ServerContext* context, const ::user_service::DeleteUserRequest* request, ::user_service::DeleteUserResponse* response);


};
